Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Push-PipelinesToList to handle null dependencies #683

Closed

Conversation

Liszet
Copy link

@Liszet Liszet commented Jul 31, 2024

Refactor the Push-PipelinesToList function in PrePostDeploymentScript.Ver2.ps1 to improve pipeline dependency handling.
If a dependency is null, display a warning message identifying which pipeline and activity should be modified. Before the fix, the deployment pipeline would fail without giving any good error message.

Cases where dependency is null -> When one has an execute pipeline in the ADF, that references a pipeline that has been deleted, the activity is set to null. At the moment this does not show up as an error in the 'Validate' step in ADF (as I would expect it would)

Alternative fix: consider throwing an error with the same message, instead of just writing a warning ?

Resolves #679, resolves #678, resolves #675, resolves #431

…ipt.Ver2.ps1` to improve pipeline dependency handling. If a dependency is null, display a warning message. Otherwise, recursively call `Push-PipelinesToList` with the dependent pipeline.
@Liszet
Copy link
Author

Liszet commented Jul 31, 2024

@soma-ms Could you take a look at this pull request?

@Liszet
Copy link
Author

Liszet commented Aug 1, 2024

The ADF product team just fixed the validation in the Data Factory, so now the execute pipelines activities that have no invoked pipeline should show up in the validate step during development

@Liszet Liszet closed this Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant